import request from '~/utils/resquest'

// 获取子系统列表
export const getSystemApplicationList = <T>(params: T) => {
  return request({
    url: '/api/gxsaas-system/application/list',
    method: 'get',
    params
  })
}

// 添加子系统项
export const addSystemApplicationInfo = <T>(params: T) => {
  return request({
    url: '/api/gxsaas-system/application/add',
    method: 'post',
    data: params
  })
}

// 修改子系统项
export const updateSystemApplicationInfo = <T>(params: T) => {
  return request({
    url: '/api/gxsaas-system/application/update',
    method: 'post',
    data: params
  })
}

// 删除子系统项
export const deleteSystemApplicationInfo = <T>(params: T) => {
  return request({
    url: '/api/gxsaas-system/application/remove',
    method: 'post',
    params
  })
}
